﻿<%@ Control Language="C#" AutoEventWireup="false" CodeFile="DanhSachTinRaoVatTheoList.ascx.cs" Inherits="UserControl_DanhSachTinRaoVatTheoList" %>



<style type="text/css">
        #form1
        {
            width: 619px;
        }
    </style>

    <div class="newsbox_noleft">
    <div class="newsbox_noleft_header">
 
    <asp:Panel ID="pnlHeader" runat="Server">
        <h4>
            <asp:Label ID="lblTenMucCon" runat="server" Text=""></asp:Label></h4>
            </asp:Panel>
   </div>

   <div class="newsbox_noleft_content">
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
            <td>
                
                    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="1"
                        ForeColor="#333333" GridLines="None" Width="530px" OnRowDataBound="GridView1_RowDataBound"
                        AllowPaging="True" OnPageIndexChanging="GridView2_PageIndexChanging" 
                        CellSpacing="1" onselectedindexchanged="GridView2_SelectedIndexChanged1">
                        <RowStyle BackColor="#CCCCCC" HorizontalAlign="Center" VerticalAlign="Middle" Height="60px" />
                        <Columns>
                            <asp:TemplateField ShowHeader="False">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Image ID="Image1" runat="server" GenerateEmptyAlternateText="True" Height="30px"
                                        Width="30px" />
                                </ItemTemplate>
                                <ItemStyle Height="30px" Width="30px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tên Tin Rao Vặt">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hplTenTin" runat="server"></asp:HyperLink>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tên người dùng">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hplTenNguoiDung" runat="server"></asp:HyperLink>
                                </ItemTemplate>
                                <ItemStyle Width="15%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ThoiGianDang" HeaderText="Thời gian đăng" SortExpression="ThoiGianDang"
                                DataFormatString="{0:d}">
                                <ItemStyle Width="10%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="SoLanXem" HeaderText="Số Lần Xem" SortExpression="SoLanXem">
                                <ItemStyle Width="10%" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="Hình Sản Phẩm">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("MaTinRaoVat") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>

                                <!-- Phần zoom hình -->
                             
                                
                                     <asp:HyperLink ID="HyperLink1" runat="server" CssClass="jqzoom">
                                   <asp:Image ID="Image2" runat="server" ImageAlign="Left" Width="80px" /> </asp:HyperLink>
                                </ItemTemplate>

                               <ItemStyle Height="60px" Width="80px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Auto Up" SortExpression="MaTinRaoVat" 
                                Visible="False">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("MaTinRaoVat") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:HyperLink ID="HyperLink2" runat="server">Auto up</asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Left" 
                            Font-Overline="False" Font-Size="Medium" Font-Strikeout="False" Height="30px" 
                            VerticalAlign="Middle" />
                        <EmptyDataTemplate>
                            <asp:Label ID="Label1" runat="server" Text="Không tìm thấy dữ liệu liên quan"></asp:Label>
                        </EmptyDataTemplate>
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#666666" Font-Bold="True" ForeColor="White" HorizontalAlign="Center"
                            VerticalAlign="Middle" Height="60px" />
                        <EditRowStyle BackColor="#CCCCCC" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="Panel1" runat="server">
                    <table align="right">
                        <tr>
                            <td align="left">
                                <asp:Button ID="btnDangBaiRaoVat" runat="server" Text="Đăng Bài Rao Vặt" CssClass="exclusive"
                                    PostBackUrl="~/RaoVat/DangBaiRaoVat.aspx" />
                            </td>
                            <td align="right">
                                <asp:DropDownList ID="ddlKieuSapXep0" runat="server" Height="26px" Width="174px">
                                    <asp:ListItem>Tăng dần</asp:ListItem>
                                    <asp:ListItem>Giảm dần</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                <asp:DropDownList ID="ddlTenSapXep0" runat="server" Height="26px" Width="171px">
                                    <asp:ListItem>Tên Tin Rao Vặt</asp:ListItem>
                                    <asp:ListItem>Tên Người Dùng</asp:ListItem>
                                    <asp:ListItem>Thời Gian Đăng</asp:ListItem>
                                    <asp:ListItem>Số Lần Xem</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                <asp:Button ID="btnSapXep0" runat="server" Text="Sắp xếp" Height="26px" CssClass="exclusive"
                                    OnClick="btnSapXep0_Click" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
    </table>
   
</div>
</div>